package com.example.miaosha.mapper;

import com.example.miaosha.entity.OrderInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created by lerry_li on 2020/10/22
 */
@Mapper
public interface OrderInfoMapper {
    //插入一条记录
    @Insert("INSERT INTO order_info (id,user_id,item_id,item_price,amount,order_price) " +
            "VALUES (#{id},#{userId},#{itemId},#{itemPrice},#{amount},#{orderPrice})")
    void insertSelective(OrderInfo orderInfo);
}
